<?=doctype('html5')?>
<html lang='en'>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php include_once("analyticstracking.php") ?>	
<Meta name="Author" content="betalife.be">
<Meta name="Publisher" content="betalife.be">
<Meta name="Copyright" content="&copy; Copyright 2013, Neuf-Neuf Dragon">
<Meta name="Revisit-After" content="30 days">
<Meta HTTP-EQUIV="Expires" content="none">
<Meta name="Keywords" content="Traiteur Chinois, Brussels, Bruxelles, Evere, Uccle, Etterbeek, Restaurant Chinois, Take Away, Plat à Emporter, Livraison, Delivery, LunchBox ">
<Meta name="Description" content="Lunch Box, Restaurant Japonais, Evere, Uccle, Etterbeek, Take Away, Plat à Emporter.">
<Meta name="Pagetopic" content="Shopping">
<Meta name="Pagetype" content="Instruction">
<Meta name="Audience" content=" All">
<Meta name="Content-Language" content="French">
<link rel="shortcut icon" href="<?=base_url('resources/imgs/favicon.ico')?>" type="image/x-icon" />
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
<link href="<?=base_url()?>resources/css/style.css" media="screen" rel="stylesheet" type="text/css"/>
<link href='http://fonts.googleapis.com/css?family=Codystar|Pinyon+Script|Varela+Round' rel='stylesheet' type='text/css'>
<title><?=$title?></title>
<script type="text/javascript">
function logout()
{
if (confirm('vous voulez déconnecter ?')) {
		
		$.post("<?=site_url('logout')?>", function(data) {
			
			window.location.reload();
			});
		
	   }
}
</script>
</head>
<body>
<div class="header">

<div class="menubar">


<div class="cats">
<a href="<?=site_url()?>" ><li><img src="<?=base_url()?>resources/imgs/accueil.png" alt="accueil" title="Accueil" height="16"> Accueil</li></a>
<?php foreach ($menu as $m):?>
<?php if($m->cat_name != 'Sauce'):?>
<a href="<?=site_url()?>menu/<?=$m->id?>"><li <?php if($this->uri->segment(2) == $m->id ){?>class="active" <?php }elseif($this->uri->segment(2)==NULL && $m->id=='1' && $this->uri->segment(1)=='menu'){?>class="active" <?php }?>>
<img src="<?=base_url()?>resources/imgs/icon_<?=$m->id?>.png" alt="<?=$m->cat_name?>" title="<?=$m->cat_name?>" height="16"> <?=$m->cat_name?>
</li></a>
<?php endif;?>
<?php endforeach;?>
<!-- <a href="<?//site_url('cart')?>"><li <?php //if($this->uri->segment(1)=='cart'){?>class="active"<?php //}?>><img src="<?//base_url()?>resources/imgs/cart.png" alt="Panier" title="Panier" height="16"> Panier: <?//$this->cart->total_items()?> | <?//number_format($this->cart->total(),2,'.','')?> €</li></a> -->
<a href="<?=site_url('account')?>"><li <?php if($this->uri->segment(1)=='account'){?>class="active"<?php }?>><img src="<?=base_url()?>resources/imgs/profile.png" alt="Compte" title="Compte" > <?php if($this->member){?><?=$this->member->firstname?> <?=$this->member->lastname?><?php }else{?>Compte<?php }?></li></a>
<?php if($this->member){?>
<a href="javascript:void(0)" onclick="logout()"><li><img src="<?=base_url()?>resources/imgs/logout.png" alt="Déconnexion" title="Déconnexion" height="16"> Déconnexion</li></a>
<?php }else{?>
<a href="<?=site_url('login')?>"><li><img src="<?=base_url()?>resources/imgs/logout.png" alt="Connexion" title="Connexion" height="16"> Connexion</li></a>
<?php }?>
<div class="clear"></div>
</div>

</div>
<div class="clear"></div>
<?php if(isset($submenu)){?>
<?php if($submenu):?>
<div class="submenubar">
<div class="subcats">
<?php foreach ($submenu as $sub):?>
<a href="<?=site_url()?>menu/<?=$sub->parent_id?>/<?=$sub->id?>"><li <?php if($this->uri->segment(3) == $sub->id ){?>class="active" <?php }?>>
<?php if($sub->parent_id==4){?>
<img src="<?=base_url()?>resources/imgs/menu.png" alt="<?=$sub->cat_name?>" title="<?=$sub->cat_name?>" height="16"> <?=$sub->cat_name?>
<?php }else{?>
<img src="<?=base_url()?>resources/imgs/icon_<?=$sub->id?>.png" alt="<?=$sub->cat_name?>" title="<?=$sub->cat_name?>" height="16"> <?=$sub->cat_name?>
<?php }?>
</li></a>
<?php endforeach;?>
</div>
<div class="clear"></div>
</div>
<?php endif;?>
<?php }?>
</div>